package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;
import dbreflection.tablemanagement.DOField;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 19.11.2008
 * Time: 11:28:27
 */
@DOTable(table = "organisation_structure")
public class Organisation extends DatabaseObject {
    public Organisation() {
        this.id = DatabaseObject.UNASSIGNEDINT;
        this.rootId = null;
        this.name = DatabaseObject.UNASSIGNEDSTRING;
    }
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "root_id")
    private Integer rootId;
    @DOField(column = "name")
    private String name;

    public String toString() {
//        return id + " : " + rootId + " : " + name;
        return name;
    }
}
